//
// Created by xgz on 10/14/21.
//

#ifndef JINGJIA_JVM_CPP_ALLOCATION_INLINE_HPP
#define JINGJIA_JVM_CPP_ALLOCATION_INLINE_HPP

template <MEMFLAGS F> void* CHeapObj<F>::operator new(size_t size) throw() {
    return malloc(size);
}

template <MEMFLAGS F> void CHeapObj<F>::operator delete(void* p){
    free(p);
}

#endif //JINGJIA_JVM_CPP_ALLOCATION_INLINE_HPP
